c5cc6468a1f306f6e80103e3e8f263a0602d3004,src/main/java/uk/co/coen/capsulecrm/client/CapsuleEntity.java,CapsuleEntity,add,#CHistoryItem#,69
Before Change
return WS.url(capsuleUrl + "/api" + readContextPath() + "/" + id + "/history/" + item.id)
.setHeader("Content-Type", "text/xml; charset=utf-8")
.setAuth(capsuleToken, "")
.put(xstream.toXML(item));
} else {
return WS.url(capsuleUrl + "/api" + readContextPath() + "/" + id + "/history")
.setHeader("Content-Type", "text/xml; charset=utf-8")
After Change
return asyncHttpClient.preparePut(capsuleUrl + "/api" + readContextPath() + "/" + id + "/history/" + item.id)
.addHeader("Accept", "application/xml")
.setRealm(realm)
.setBody(xstream.toXML(item))
.execute();
} else {
return asyncHttpClient.preparePost(capsuleUrl + "/api" + readContextPath() + "/" + id + "/history")
.addHeader("Content-Type", "application/xml")